﻿package com.webbei.pojo;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

public class Orders {
	private Long orderId;
	private String userName;
	private String orderName;
	private String orderMobilePhone;
	private String orderProvince;
	private String orderCity;
	private String orderAddress;
	private String orderContent;
	private String orderFreight;
	private Date orderTime;
	private Integer orderState;
	private Integer orderProductsCount;
	private Double orderTotalPrice;
	private String CDRurl;
	private Integer customId;
	private int isShare;
	private String orderTheme;
	private String stockoutReason;
	private String costFeedback;
	//private String customUploadFile;
	private String sku;
	private Integer beShareCount;
	private Integer beCommentCount;
	private Integer beBuyCount;
	private String introduce;
	private String mark;
	private String memo;
	private Long tradeId;
	private String productionState;
	private String orderPic;
	private Integer backPicId;
	private String orderDetail;
	private Double postfee;
	private Integer industryId;
	private String receiveTelephone;
	private Integer receivePostCode;
	private String sellername;
	private String orderArea;
	private Date shareTime;
	private Long refundid;//退款单号
	/*辅助添加的*/
	private String orderTime_bak;
	private String orderState_bak;
	private String orderAddress_bak;
	private String industryName;
	private List<Labelcost> labelCosts;


	public Long getTradeId() {
		return tradeId;
	}


	public void setTradeId(Long tradeId) {
		this.tradeId = tradeId;
	}


	public String getOrderAddress_bak() {
		return orderProvince+orderCity+orderAddress;
	}


	public String getIndustryName() {
		return industryName;
	}


	public void setIndustryName(String industryName) {
		this.industryName = industryName;
	}


	public String getOrderTime_bak() {
		return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.orderTime);
	}
	public String getOrderState_bak() {
		if(this.orderState==0){
			return "买家申请退款";
		}else if(this.orderState==1){
			return "买家已付款，等待卖家发货";
		}else if(this.orderState==2){
			return "卖家已发货，等待买家确认收货";
		}else if(this.orderState==3){
			return "买家确认收获，交易成功";
		}else if(this.orderState==4){
			return "交易关闭";
		}else{
			return "异常状态";
		}
	}

/*------------------------------------------------------------------------*/

	public int getIsShare() {
		return isShare;
	}

	public void setIsShare(int isShare) {
		this.isShare = isShare;
	}

	public String getOrderPic() {
		return orderPic;
	}


	public String getOrderTheme() {
		return orderTheme;
	}


	public void setOrderTheme(String orderTheme) {
		this.orderTheme = orderTheme;
	}


	public void setOrderPic(String orderPic) {
		this.orderPic = orderPic;
	}


	public Integer getIndustryId() {
		return industryId;
	}


	public void setIndustryId(Integer industryId) {
		this.industryId = industryId;
	}


	public Integer getBackPicId() {
		return backPicId;
	}


	public Long getOrderId() {
		return orderId;
	}


	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}


	public void setBackPicId(Integer backPicId) {
		this.backPicId = backPicId;
	}


	public String getOrderDetail() {
		return orderDetail;
	}


	public void setOrderDetail(String orderDetail) {
		this.orderDetail = orderDetail;
	}

	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getOrderName() {
		return orderName;
	}
	public void setOrderName(String orderName) {
		this.orderName = orderName;
	}
	public String getOrderMobilePhone() {
		return orderMobilePhone;
	}
	public void setOrderMobilePhone(String orderMobilePhone) {
		this.orderMobilePhone = orderMobilePhone;
	}
	public String getOrderProvince() {
		return orderProvince;
	}
	public void setOrderProvince(String orderProvince) {
		this.orderProvince = orderProvince;
	}
	public String getOrderCity() {
		return orderCity;
	}
	public void setOrderCity(String orderCity) {
		this.orderCity = orderCity;
	}
	public String getOrderAddress() {
		return orderAddress;
	}
	public void setOrderAddress(String orderAddress) {
		this.orderAddress = orderAddress;
	}
	public String getOrderContent() {
		return orderContent;
	}
	public void setOrderContent(String orderContent) {
		this.orderContent = orderContent;
	}
	public String getOrderFreight() {
		return orderFreight;
	}
	public void setOrderFreight(String orderFreight) {
		this.orderFreight = orderFreight;
	}
	public Integer getOrderState() {
		return orderState;
	}
	public Date getOrderTime() {
		return orderTime;
	}
	public void setOrderTime(Date orderTime) {
		this.orderTime = orderTime;
	}
	public void setOrderState(Integer orderState) {
		this.orderState = orderState;
	}
	public Integer getOrderProductsCount() {
		return orderProductsCount;
	}
	public void setOrderProductsCount(Integer orderProductsCount) {
		this.orderProductsCount = orderProductsCount;
	}

	public String getCDRurl() {
		return CDRurl;
	}

	public Double getOrderTotalPrice() {
		return orderTotalPrice;
	}
	public void setOrderTotalPrice(Double orderTotalPrice) {
		this.orderTotalPrice = orderTotalPrice;
	}
	public void setCDRurl(String cDRurl) {
		CDRurl = cDRurl;
	}
	public Integer getCustomId() {
		return customId;
	}
	public void setCustomId(Integer customId) {
		this.customId = customId;
	}


	public String getStockoutReason() {
		return stockoutReason;
	}


	public void setStockoutReason(String stockoutReason) {
		this.stockoutReason = stockoutReason;
	}


	public String getCostFeedback() {
		return costFeedback;
	}


	public void setCostFeedback(String costFeedback) {
		this.costFeedback = costFeedback;
	}


//	public String getCustomUploadFile() {
//		return customUploadFile;
//	}
//
//
//	public void setCustomUploadFile(String customUploadFile) {
//		this.customUploadFile = customUploadFile;
//	}


	public Integer getBeShareCount() {
		return beShareCount;
	}


	public void setBeShareCount(Integer beShareCount) {
		this.beShareCount = beShareCount;
	}


	public Integer getBeCommentCount() {
		return beCommentCount;
	}


	public void setBeCommentCount(Integer beCommentCount) {
		this.beCommentCount = beCommentCount;
	}


	public Integer getBeBuyCount() {
		return beBuyCount;
	}


	public void setBeBuyCount(Integer beBuyCount) {
		this.beBuyCount = beBuyCount;
	}


	public String getIntroduce() {
		return introduce;
	}


	public void setIntroduce(String introduce) {
		this.introduce = introduce;
	}


	public String getMark() {
		return mark;
	}


	public void setMark(String mark) {
		this.mark = mark;
	}


	public String getSku() {
		return sku;
	}


	public void setSku(String sku) {
		this.sku = sku;
	}


	public List<Labelcost> getLabelCosts() {
		return labelCosts;
	}


	public void setLabelCosts(List<Labelcost> labelCosts) {
		this.labelCosts = labelCosts;
	}


	public String getMemo() {
		return memo;
	}


	public void setMemo(String memo) {
		this.memo = memo;
	}

	public String getProductionState() {
		return productionState;
	}
	public void setProductionState(String productionState) {
		this.productionState = productionState;
	}
	public Double getPostfee() {
		return postfee;
	}


	public void setPostfee(Double postfee) {
		this.postfee = postfee;
	}


	public String getReceiveTelephone() {
		return receiveTelephone;
	}


	public void setReceiveTelephone(String receiveTelephone) {
		this.receiveTelephone = receiveTelephone;
	}


	public Integer getReceivePostCode() {
		return receivePostCode;
	}


	public void setReceivePostCode(Integer receivePostCode) {
		this.receivePostCode = receivePostCode;
	}


	public String getSellername() {
		return sellername;
	}


	public void setSellername(String sellername) {
		this.sellername = sellername;
	}


	public String getOrderArea() {
		return orderArea;
	}


	public void setOrderArea(String orderArea) {
		this.orderArea = orderArea;
	}


	public Date getShareTime() {
		return shareTime;
	}


	public void setShareTime(Date shareTime) {
		this.shareTime = shareTime;
	}


	@Override
	public String toString() {
		return "Orders [orderId=" + orderId + ", userName=" + userName
				+ ", orderName=" + orderName + ", orderMobilePhone="
				+ orderMobilePhone + ", orderProvince=" + orderProvince
				+ ", orderCity=" + orderCity + ", orderAddress=" + orderAddress
				+ ", orderContent=" + orderContent + ", orderFreight="
				+ orderFreight + ", orderTime=" + orderTime + ", orderState="
				+ orderState + ", orderProductsCount=" + orderProductsCount
				+ ", orderTotalPrice=" + orderTotalPrice + ", CDRurl=" + CDRurl
				+ ", customId=" + customId + ", isShare=" + isShare
				+ ", orderTheme=" + orderTheme + ", stockoutReason="
				+ stockoutReason + ", costFeedback=" + costFeedback
				+ ", customUploadFile="  + ", sku=" + sku
				+ ", beShareCount=" + beShareCount + ", beCommentCount="
				+ beCommentCount + ", beBuyCount=" + beBuyCount
				+ ", introduce=" + introduce + ", mark=" + mark + ", memo="
				+ memo + ", tradeId=" + tradeId + ", productionState="
				+ productionState + ", orderPic=" + orderPic + ", backPicId="
				+ backPicId + ", orderDetail=" + orderDetail + ", postfee="
				+ postfee + ", industryId=" + industryId
				+ ", receiveTelephone=" + receiveTelephone
				+ ", receivePostCode=" + receivePostCode + ", industryName="
				+ industryName + ", labelCosts=" + labelCosts + "]";
	}


	public Long getRefundid() {
		return refundid;
	}


	public void setRefundid(Long refundid) {
		this.refundid = refundid;
	}


}
